// pages/profile/index.js
Page({
  data: {
    nickName: "",
    avatarUrl: "",
  },
  getNickName(e) {
    // console.log(e.detail.value);
    this.setData({
        nickName: e.detail.value,
      },
      () => {
        wx.setStorageSync("nickName", e.detail.value);
      }
    );
  },
  getAvatar(e) {
    console.log(e);
    this.setData({
        avatarUrl: e.detail.avatarUrl,
      },
      () => {
        wx.setStorageSync("avatarUrl", e.detail.avatarUrl);
      }
    );
  },
  getUserInfo(e) {
    console.log(e);
  },
  getPhoneNumber(e) {
    console.log(e);
  },
  onShareAppMessage() {
    return {
      title: "分享的标题",
    };
  },
});